package com.fast.model;

import lombok.Data;
import lombok.ToString;

import java.io.Serializable;

/**
 * api-用户对象
 *
 * @author liuliang
 * @date 2018/4/19
 */
@Data
@ToString
public class UserModel implements Serializable {

    private static final long serialVersionUID = -4089036752023152970L;
    /**
     * 所属用户id
     */
    //@NotNull(message = "缺失用户信息")
    private Long userId;

    /**
     * 所属租户id
     */
    //@NotNull(message = "缺失租户信息")
    private Long tenantId;

    /**
     * 合作方isv信息
     */
    private String isvId;

    public UserModel(Long userId, Long tenantId) {
        this.userId = userId;
        this.tenantId = tenantId;
    }

    public UserModel(Long userId, Long tenantId, String isvId) {
        this.userId = userId;
        this.tenantId = tenantId;
        this.isvId = isvId;
    }
}
